package projects.ufam.nodes.messages;

import projects.defaultProject.nodes.nodeImplementations.LocalizableNode;
import sinalgo.nodes.Node;
import sinalgo.nodes.messages.Message;

public class RPEMessage extends Message {
	
	//private Position originPosition; 
	private int hops;
	
	public RPEMessage( LocalizableNode origin, int hops ) {
		this.sender = (Node)origin;
		this.hops = hops;
	}

	@Override
	public Message clone() {
		return new RPEMessage((LocalizableNode)this.sender, this.hops);
	}
	
	
	public int hops() {
		return this.hops;
	}

	@Override
	public int getMessageSize() {
		return 1;
	}
}
